#ifndef LOGINDIALOG_H
#define LOGINDIALOG_H

#include <QDialog>
#include <QMessageBox>
#include <QMouseEvent>
#include <QDesktopWidget>
#include <QTime>
#include "BaseDialog.h"
namespace Ui {
    class LoginDialog;
}

class LoginDialog : public BaseDialog {
    Q_OBJECT
public:
    LoginDialog(QWidget *parent = 0);
    ~LoginDialog();

    //
    QString GetUsrName() const;

    //
    QString GetPassWord() const;

    //
    void SetAccountName(QString sAccountName);

    //
    void SetPassWord(QString sPassWord);



protected:
    void changeEvent(QEvent *e);

    //
    void keyPressEvent(QKeyEvent *e);

    //
    void showEvent(QShowEvent *event);   

    //
    void hideEvent(QHideEvent *event);

private:
    Ui::LoginDialog *ui;
    bool            m_bLogined;

private slots:
    void on_pbnCancel_clicked();
    void on_pbnYes_clicked();

};

#endif // LOGINDIALOG_H
